Active Templates: Manipulating Pointers with Pictures

نویسندگان

  • P. J. Lyons
  • M. D. Apperley
  • A. G. Bishop
  • G. S. Moretti
چکیده

Active templates are a semi-automatic visual mechanism for generating algorithms for manipulating pointer-based data structures. The programmer creates a picture showing the affected part of a data structure before and after a general-case manipulation. Code for the operation is compiled directly from the picture, which also provides the development environment with enough information to generate, automatically, a series of templates for other similar pictures, each describing a different configuration which the data structure may possess. The programmer completes the algorithm by creating matching after-pictures for each of these cases. At every stage, most of the picture-generation is automatic. Much of the tedious detail of conventional pointer-based data-structure manipulation, such as maintenance of current pointers, is unnecessary in a system based on active templates.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Reasoning about Pointers in Refinement Calculus

Pointers are an important programming concept. They are used explicitely or implicitly in many programming languages. In particular, the semantics of object-oriented programming languages rely on pointers. We introduce a semantics for pointer structures. Pointers are seen as indexes and pointer fields are functions from these indexes to values. Using this semantics we turn all pointer operation...

متن کامل

Effects of contextual integration on recall of pictures by older adults.

This study investigated age-related differences in the ability to utilize integrative relationships between target and context as a memory support by directly manipulating the relationship between a target picture and context. We hypothesized that as the active integration required between target and cue increased, age differences would increase. Old and young adults were instructed to remember...

متن کامل

A Verification Condition Visualizer

When first encountering data structures such as arrays, records and pointers programmers are often presented with pictorial representations. The use of pictures to describe data structures and their manipulation can help establish basic programming intuitions. The same is true of program proving where pictures are frequently used within the literature to describe program properties such as loop...

متن کامل

Enabling, Facilitating, and Inhibiting Effects of Animations in Multimedia Learning: Why Reduction of Cognitive Load Can Have Negative Results on Learning

New technologies allow the display of text, static visuals, and animations. Although animations are inherently attractive, they are not always beneficial for learning. Problems may arise especially when animations modify the learner’s cognitive load in an unintended way. In two learning experiments with 40 and 26 university students, the effects of animated pictures on knowledge acquisition wer...

متن کامل

Querying Trees with Pointers

We introduce a data model for semi-structured data and explore a spatial logic for reasoning about this model. This note is part of an on-going project to develop a pattern-matching language for analysing and manipulating semi-structured data. This work was first reported in Appsem 2001 and the session on spatial logic at MFPS 2002.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1994